﻿using System.Drawing;

namespace WinForm.Common
{
    public class ImagesHelper
    {
        static Icon _appIcon;

        public static Icon AppIcon
        {
            get { return _appIcon ?? (_appIcon = ResourcesHelper.GetIconFromImagesFolder("AppIcon.ico")); }
        }

        //private const string months = 12;

//        public static ImagesHelper Current
//        {
//            get
//            {
//                if (current == null)
//                    current = new ImagesHelper();
//                return current;
//            }
//        }
       
//        #region 系统常用图片属性
//        public ImageCollection DiskIcons
//        {
//            get
//            {
//                if (ImagesHelper.diskIcons == null)
//                    ImagesHelper.diskIcons = DevExpress.Utils.Controls.ImageHelper.CreateImageCollectionFromResources("WinForm.Images.DiskFormats.png", typeof(ImagesHelper).Assembly, new Size(16, 16));
//                return ImagesHelper.diskIcons;
//            }
//        }
//        public ImageCollection PersonImages
//        {
//            get
//            {
//                if (ImagesHelper.personImages == null)
//                    ImagesHelper.personImages = DevExpress.Utils.Controls.ImageHelper.CreateImageCollectionFromResources("WinForm.Resources.Images.Persons.png", typeof(ImagesHelper).Assembly, new Size(16, 16));
//                return ImagesHelper.personImages;
//            }
//        }
//        public ImageCollection ReceiptTypeImages
//        {
//            get
//            {
//                if (ImagesHelper.receiptTypeImages == null)
//                    ImagesHelper.receiptTypeImages = DevExpress.Utils.Controls.ImageHelper.CreateImageCollectionFromResources("WinForm.Resources.Images.ReceiptType.png", typeof(ImagesHelper).Assembly, new Size(16, 16));
//                return ImagesHelper.receiptTypeImages;
//            }
//        }
//        public ImageCollection RatingImages
//        {
//            get
//            {
//                if (ratingImages == null)
//                    ratingImages = DevExpress.Utils.Controls.ImageHelper.CreateImageCollectionFromResources("WinForm.Resources.Images.RatingsSmall.png", typeof(ImagesHelper).Assembly, new Size(38, 16));
//                return ratingImages;
//            }
//        }
//        public ImageCollection RatingLargeImages
//        {
//            get
//            {
//                if (ratingLargeImages == null)
//                    ratingLargeImages = DevExpress.Utils.Controls.ImageHelper.CreateImageCollectionFromResources("WinForm.Resources.Images.RatingsLarge.png", typeof(ImagesHelper).Assembly, new Size(250, 37));
//                return ratingLargeImages;
//            }
//        }
//        public ImageCollection ActiveRents
//        {
//            get
//            {
//                if (activeRents == null)
//                    activeRents = DevExpress.Utils.Controls.ImageHelper.CreateImageCollectionFromResources("WinForm.Resources.Images.ActiveRents.png", typeof(ImagesHelper).Assembly, new Size(16, 16));
//                return activeRents;
//            }
//        }
//        public ImageCollection BarImages
//        {
//            get
//            {
//                if (ImagesHelper.barImages == null)
//                    ImagesHelper.barImages = DevExpress.Utils.Controls.ImageHelper.CreateImageCollectionFromResources("WinForm.Resources.Images.BarImages16x16.png", typeof(WinForm.Common.ImagesHelper).Assembly, new System.Drawing.Size(16, 16));
//                return ImagesHelper.barImages;
//            }
//        }
//        public ImageCollection ColumnHeaderImages
//        {
//            get
//            {
//                if (ImagesHelper.columnHeaderImages == null)
//                    ImagesHelper.columnHeaderImages = DevExpress.Utils.Controls.ImageHelper.CreateImageCollectionFromResources("WinForm.Resources.Images.ColumnHeaderImages.png", typeof(ImagesHelper).Assembly, new System.Drawing.Size(13, 13));
//                return ImagesHelper.columnHeaderImages;
//            }
//        }
//        public ImageCollection ColumnHeaderSmoothImages
//        {
//            get
//            {
//                if (ImagesHelper.columnHeaderSmoothImages == null)
//                    ImagesHelper.columnHeaderSmoothImages = DevExpress.Utils.Controls.ImageHelper.CreateImageCollectionFromResources("WinForm.Resources.Images.ColumnHeaderSmoothImages.png", typeof(ImagesHelper).Assembly, new System.Drawing.Size(13, 13));
//                return ImagesHelper.columnHeaderSmoothImages;
//            }
//        }
//        public ImageCollection FolderIcons
//        {
//            get
//            {
//                if (folderIcons == null)
//                    folderIcons = DevExpress.Utils.Controls.ImageHelper.CreateImageCollectionFromResources("WinForm.Resources.Images.FolderIcons16x16.png", typeof(ImagesHelper).Assembly, new System.Drawing.Size(16, 16));
//                return folderIcons;
//            }
//        }
//        public Image AboutImage
//        {
//            get
//            {
//                if (ImagesHelper.aboutImage == null)
//                    ImagesHelper.aboutImage = ResourceImageHelper.CreateImageFromResources("WinForm.Resources.Images.About.png", typeof(ImagesHelper).Assembly);
//                return ImagesHelper.aboutImage;
//            }
//        }
//#endregion 系统常用图片属性
        
       
    }
}
